applying distributive property